<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>你好React</title>
  <!-- 1. 引入react核心库 -->
  <script src="./node_modules/react/umd/react.development.js"></script>
  <!-- 2. 引入react-dom 用于支持react操作dom -->
  <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
  <div id="xi"></div>
  <script>
    console.log("React",React,ReactDOM)


    let wang =React.createElement('h1',null,'王喜跃')
    console.log(wang);
    let yue=ReactDOM.createRoot(document.getElementById('xi'))


    yue.render(wang)

    console.log('Va', wang)
    console.log('vv',document.getElementById('xi'))
    let vv=document.getElementById('xi')

    let arr=[]
    console.log('title-typeof',typeof wang,typeof arr);
    console.log('title-instanceof', wang instanceof Object )
       console.log('arr-instanceof', arr instanceof Array )
  </script>
</head>
<body>
  
</body>
</html>